import QtQuick
import QtQuick.Controls

Window{
	width:1280
	height:720
	visible:true
    Flickable{
         anchors.fill: parent
         contentHeight: parent.height

        Flow{
        spacing: 10
        anchors.fill: parent
        id:root
        property real item_width: 120
        property real item_height: 80
        Repeater{
            model:33
            id:root_repeater
            Rectangle{
                width: root.item_width
                height: root.item_height
                border.width: 1
                radius: 10
            }
        }

        Rectangle{
            id:add_item
            width: root.item_width
            height: root.item_height
            border.width: 1
            radius: 10
            color:"lightblue"
            MouseArea{
                anchors.fill: parent
                onClicked: {
                    root_repeater.model++;
                }
            }
        }
    }
    }
}
